package com.qianbei.user.privacy;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

import com.qianbei.R;
import com.qianbei.common.base.BaseActivity;
import com.qianbei.common.util.CertNoUtil;

public class AboutActivity extends BaseActivity {

    private TextView mVersionCodeTv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_activity);
        setTitle("关于我们");

        mVersionCodeTv = (TextView) findViewById(R.id.tv_version_code);

        String versionName = CertNoUtil.getAppVersionName(this);
        if (!TextUtils.isEmpty(versionName)) {
            mVersionCodeTv.setText(getString(R.string.version_name_format, versionName));
        }

    }
}
